#-------------------------------------------------
#
# Project created by QtCreator 2012-11-11T00:21:14
#
#-------------------------------------------------

QT       += core gui opengl

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = WidgetTest
TEMPLATE = app


SOURCES += main.cpp


SHADERS += \
    ../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/selection.vert \
    ../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/selection.frag \
    ../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/Phong_lit_shader.vert \
    ../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/Phong_lit_shader.frag \
    ../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/mtomv.vert \
    ../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/mtomv.frag \
    ../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/flat.vert \
    ../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/flat.frag \
    ../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/shader.sed

OTHER_FILES += $$SHADERS \
    ../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/wireframe.vert \
    ../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/wireframe.frag \
    ../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/wireframe_sel.vert \
    ../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/wireframe_sel.frag

HEADERS += ../../../branches/refactoring.10.12/gui/qt/glwidget.h \
    ../../../branches/refactoring.10.12/output_devices/OpenGL/primitivebuffer.h \
    ../../../branches/refactoring.10.12/output_devices/OpenGL/primitive.h \
    ../../../branches/refactoring.10.12/output_devices/OpenGL/opengl_inc.h \
    ../../../branches/refactoring.10.12/output_devices/OpenGL/opengl_device.h \
    ../../../branches/refactoring.10.12/output_devices/OpenGL/oglchecker.h \
    ../../../branches/refactoring.10.12/output_devices/Terminal/terminal_device.h \
    ../../../branches/refactoring.10.12/output_devices/output_device.h \
    ../../../branches/refactoring.10.12/output_devices/OpenGL/shadermanager.h \
    ../../../branches/refactoring.10.12/scene/sceneelement.h \
    ../../../branches/refactoring.10.12/scene/scene.h \
    ../../../branches/refactoring.10.12/scene/material.h \
    ../../../branches/refactoring.10.12/scene/camera.h \
    ../../../branches/refactoring.10.12/tools/vector4.h \
    ../../../branches/refactoring.10.12/tools/vector3.h \
    ../../../branches/refactoring.10.12/tools/pointer_iterator.h \
    ../../../branches/refactoring.10.12/tools/matrix4.h \
    ../../../branches/refactoring.10.12/tools/id_generator.h \
    ../../../branches/refactoring.10.12/workspace/selection.h \
    ../../../branches/refactoring.10.12/workspace/model.h \
    ../../../branches/refactoring.10.12/workspace/lattice.h \
    ../../../branches/refactoring.10.12/workspace/field.h \
    ../../../branches/refactoring.10.12/workspace/molecule/molecule.h \
    ../../../branches/refactoring.10.12/workspace/molecule/bond.h \
    ../../../branches/refactoring.10.12/workspace/molecule/atom.h \
    ../../../branches/refactoring.10.12/output_devices/output_device_visitor.h \
    ../../../branches/refactoring.10.12/output_devices/output_device_visitor_interface.h \
    ../../../branches/refactoring.10.12/controller.h \
    ../../../branches/refactoring.10.12/output_devices/camera_control_device.h \
    ../../../branches/refactoring.10.12/output_devices/picking_device.h \
    ../../../branches/refactoring.10.12/output_devices/OpenGL/point_buffer.h

INCLUDEPATH += ../../../branches/refactoring.10.12/workspace/molecule/ \
               ../../../branches/refactoring.10.12/workspace/ \
               ../../../branches/refactoring.10.12/tools/ \
               ../../../branches/refactoring.10.12/scene/ \
               ../../../branches/refactoring.10.12/output_devices/ \
               ../../../branches/refactoring.10.12/output_devices/Terminal/ \
               ../../../branches/refactoring.10.12/output_devices/OpenGL/ \
               ../../../branches/refactoring.10.12/gui/qt/ \
               ../../../branches/refactoring.10.12/ \
               $$PWD/ \
               C:/Qt/boost_1_49_0 \
               C:/Qt/glew-1.9.0/include

DEPENDPATH += ../../../branches/refactoring.10.12/workspace/molecule/ \
               ../../../branches/refactoring.10.12/workspace/ \
               ../../../branches/refactoring.10.12/tools/ \
               ../../../branches/refactoring.10.12/scene/ \
               ../../../branches/refactoring.10.12/output_devices/ \
               ../../../branches/refactoring.10.12/output_devices/Terminal/ \
               ../../../branches/refactoring.10.12/output_devices/OpenGL/ \
               ../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/

debug:DEFINES += DEBUG

QMAKE_EXTRA_TARGETS += shaders

shaders.depends = $$SHADERS $$PWD/../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/shader.sed
shaders.target = $$PWD/shaders_compiled
shaders.commands = sed -f $$PWD/../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/shader.sed  \
                           $$PWD/../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/selection.vert >  $$PWD/selection.vert && \
                  sed -f $$PWD/../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/shader.sed  \
                           $$PWD/../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/selection.frag >  $$PWD/selection.frag && \
                  sed -f $$PWD/../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/shader.sed  \
                           $$PWD/../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/wireframe.vert >  $$PWD/wireframe.vert && \
                  sed -f $$PWD/../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/shader.sed  \
                           $$PWD/../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/wireframe.frag >  $$PWD/wireframe.frag && \
                  sed -f $$PWD/../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/shader.sed  \
                           $$PWD/../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/wireframe_sel.vert >  $$PWD/wireframe_sel.vert && \
                  sed -f $$PWD/../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/shader.sed  \
                           $$PWD/../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/wireframe_sel.frag >  $$PWD/wireframe_sel.frag && \
                  sed -f $$PWD/../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/shader.sed  \
                           $$PWD/../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/flat.vert >  $$PWD/flat.vert && \
                  sed -f $$PWD/../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/shader.sed  \
                           $$PWD/../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/flat.frag >  $$PWD/flat.frag && \
                  sed -f $$PWD/../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/shader.sed  \
                           $$PWD/../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/Phong_lit_shader.vert >  $$PWD/Phong_lit_shader.vert && \
                  sed -f $$PWD/../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/shader.sed  \
                           $$PWD/../../../branches/refactoring.10.12/output_devices/OpenGL/shaders/Phong_lit_shader.frag >  $$PWD/Phong_lit_shader.frag && \
                  touch $$PWD/shaders_compiled

PRE_TARGETDEPS += $$shaders.target $$HEADERS

win32:CONFIG(release, debug|release): LIBS += -LC:/Qt/glew-1.9.0/lib/ -lglew32
else:win32:CONFIG(debug, debug|release): LIBS += -LC:/Qt/glew-1.9.0/lib/ -lglew32
else:unix: LIBS += -lglew32


